if ($.fn.pagination){
	$.fn.pagination.defaults.beforePageText = '第';
	$.fn.pagination.defaults.afterPageText = '共{pages}页';
	$.fn.pagination.defaults.displayMsg = '当前{from}到{to},总数：<span class="clOrange">{total}</span>';
}
if ($.fn.datagrid){
	$.fn.datagrid.defaults.loadMsg = '正在处理，请稍等。。。';
}
if ($.fn.treegrid && $.fn.datagrid){
	$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
	$.messager.defaults.ok = '确 定';
	$.messager.defaults.cancel = '取 消';
}
if ($.fn.validatebox){
	$.fn.validatebox.defaults.missingMessage = '该项必须输入';
	$.fn.validatebox.defaults.rules.email.message = '请输入有效的电子邮件地址';
	$.fn.validatebox.defaults.rules.url.message = '请输入有效的URL地址';
	$.fn.validatebox.defaults.rules.length.message = '输入内容长度必须介于{0}和{1}之间';
	$.fn.validatebox.defaults.rules.remote.message = '请修正该字段';
}
if ($.fn.numberbox){
	$.fn.numberbox.defaults.missingMessage = '该输入项为必输项';
}
if ($.fn.combobox){
	$.fn.combobox.defaults.missingMessage = '该输入项为必输项';
}
if ($.fn.combotree){
	$.fn.combotree.defaults.missingMessage = '该输入项为必输项';
}
if ($.fn.combogrid){
	$.fn.combogrid.defaults.missingMessage = '该输入项为必输项';
}
if ($.fn.calendar){
	$.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六'];
	$.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'];
}
if ($.fn.datebox){
	$.fn.datebox.defaults.currentText = '今天';
	$.fn.datebox.defaults.closeText = '关闭';
	$.fn.datebox.defaults.okText = '确定';
	$.fn.datebox.defaults.missingMessage = '该输入项为必输项';
	$.fn.datebox.defaults.formatter = function(date){
		var y = date.getFullYear();
		var m = date.getMonth()+1;
		var d = date.getDate();
		return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d);
	};
	$.fn.datebox.defaults.parser = function(s){
		if (!s) return new Date();
		var ss = s.split('-');
		var y = parseInt(ss[0],10);
		var m = parseInt(ss[1],10);
		var d = parseInt(ss[2],10);
		if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
			return new Date(y,m-1,d);
		} else {
			return new Date();
		}
	};
}
if ($.fn.datetimebox && $.fn.datebox){
	$.extend($.fn.datetimebox.defaults,{
		currentText: $.fn.datebox.defaults.currentText,
		closeText: $.fn.datebox.defaults.closeText,
		okText: $.fn.datebox.defaults.okText,
		missingMessage: $.fn.datebox.defaults.missingMessage
	});
}

//释放IFRAME内存
$.fn.panel.defaults = $.extend({}, $.fn.panel.defaults, {
        onBeforeDestroy: function () {
            var frame = $('iframe', this);
            if (frame.length > 0) {
                frame[0].contentWindow.document.write('');
                frame[0].contentWindow.close();
                frame.remove();
                if ($.browser.msie) {CollectGarbage();}
            }
        }
    });

//-------add by Qx 2013-3-15
var myPageSize = 17; var myRowList = [10,17,25,30,50];
var wdwWth = $(window).width(); var wdwHht = $(window).height();

//---==constant for initialize myUI messager---
var mWTClew="操作提示";var mWTopResult="操作结果";var mWTerOP="操作提示（异常操作）";var mWTSys="系统提示";var mWTError="系统错误"; var btnwOK="确 定";var btnwCancel="取 消";
var mCopYN = '<img src="/images/emHappy.png"><span class="f14 clLBlue">操作执行成功。</span>'; var mCopFaild = '<img src="/images/emUnhappy.png"><span class="f14 clLRed">操作执行失败，请重试。</span>';
var mCopCrt = '<img src="/images/emHappy.png"><span class="f14 clLBlue">新增操作，执行成功。</span>'; var mCopMdy = '<img src="/images/emHappy.png"><span class="f14 clLBlue">修改操作，执行成功。</span>';
var mCopSbmtY = '<img src="/images/emHappy.png"><span class="f14 clLBlue">提交成功。</span>'; var mCopSbmtN = '<img src="/images/emUnhappy.png"><span class="f14 clLRed">提交失败，请检查录入项。</span>';
var mCopSaveY = '<img src="/images/emHappy.png"><span class="f14 clLBlue">保存成功。</span>'; var mCopSaveN = '<img src="/images/emUnhappy.png"><span class="f14 clLRed">保存失败，请重试。</span>';
var mCopSendY = '<img src="/images/emHappy.png"><span class="f14 clLBlue">送审成功。</span>'; var mCopSendN = '<img src="/images/emUnhappy.png"><span class="f14 clLRed">送审失败，请重试。</span>';
var mCErrSys = '<br><span class="f14 clLRed">系统发生意外错误，请重试。</span>'; var mCErrFaild = '<br><span class="f14 clLRed">执行发生异常错误，请重试！</span>';
var mCClwEdit = '<span class="f14 clLRed">请选中一条记录！</span><br><br>说明：仅修改您最先选择的行。'; var mCClwShow = '<span class="f14 clLRed">请选中一条记录！</span><br><br>说明：仅展示您最先选择的行。'; var mAskWaste = '<span class="f14 clOrange"><br>提示：废除项将进入回收站。</span><br><br>&nbsp;&nbsp;&nbsp;&nbsp;';
var mCClwOP = '<br><span class="f14 clLRed">执行操作前，请至少选中一行！</span>'; var mCClwDeal = '<span class="f14 clLRed">请选中一条记录！</span><br><br>说明：仅处理您最先选择的行。'; var mCDealAsk = '<span class="f14 clLRed">确定执行操作吗？</span><br><br>说明：仅执行处理您最先选择的项。</span>'; var mCDealFail = '<img src="/images/emUnhappy.png"><span class="f14 clLRed">操作失败，请重试。</span>';
var mCClwDel = '<span class="f14 clLRed">请至少选中一行！</span><br><br>说明：删除操作不可恢复，请谨慎操作。'; var mCdelAsk = '<span class="f14 clOrange"><br>提示：删除操作不可恢复。</span><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="f14">确定删除选中记录吗？</span>'; var mCDelFaild = '<img src="/images/emUnhappy.png"><span class="f14 clLRed">删除操作失败，请重试。</span>'; var mCDelSucc = '<img src="/images/emHappy.png"><span class="f14 clLBlue">选中行已删除。</span>';
var mCClwCnl = '<span class="f14 clLRed">请至少选中一行！</span><br><br>说明：删除的记录将进入回收站。'; var mCcnlAsk = '<span class="f14 clOrange"><br>提示：删除记录将进入回收站。</span><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="f14">确定删除选中记录吗？</span>'; var mCCnlFaild = '<img src="/images/emUnhappy.png"><span class="f14 clLRed">删除到回收站操作失败，请重试。</span>'; var mCCnlSucc = '<img src="/images/emHappy.png"><span class="f14 clLBlue">选中行已移动到回收站。</span>';
var mCClwRcl = '<span class="f14 clLRed">请至少选中一行！</span><br><br>说明：还原的记录将进入待处理。'; var mCrclAsk = '<span class="f14 clOrange"><br>提示：还原记录将进入待处理。</span><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="f14">确定还原选中记录吗？</span>'; var mCRclFaild = '<img src="/images/emUnhappy.png"><span class="f14 clLRed">还原到待处理操作失败，请重试。</span>'; var mCRclSucc = '<img src="/images/emHappy.png"><span class="f14 clLBlue">选中行已移动到待处理。</span>';
var mCClwBth = '<span class="f14 clLRed">请至少选中一行！</span><br><br>说明：将执行批量操作，谨慎使用。'; var mCbthAsk = '<span class="f14 clOrange"><br>提示：批量操作即将执行。</span><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="f14">确定执行吗？</span>'; var mCBthFaild = '<img src="/images/emUnhappy.png"><span class="f14 clLRed">批量操作失败，请重试。</span>'; var mCBthSucc = '<img src="/images/emHappy.png"><span class="f14 clLBlue">批量操作执行成功。</span>';
var mCsgnlClw = '<span class="f14 clLRed">请至少选中一行！</span><br><br>说明：将执行状态变化操作，谨慎使用。'; var mCsgnlAsk = '<span class="f14 clOrange"><br>提示：状态变更操作即将执行。</span><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="f14">确定执行吗？</span>'; var mCsgnlFail = '<img src="/images/emUnhappy.png"><span class="f14 clLRed">操作失败，请重试。</span>'; var mCsgnlSucc = '<img src="/images/emHappy.png"><span class="f14 clLBlue">操作执行成功。</span>';
var mCempAsk = '<span class="f14 clOrange"><br>提示：清空操作不可恢复。</span><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="f14">确定清空数据吗？</span>'; var mCempFaild = '<img src="/images/emUnhappy.png"><span class="f14 clLRed">清空操作失败，请重试。</span>'; var mCempSucc ='<img src="/images/emHappy.png"><span class="f14 clLBlue">数据已经清空。</span>';
//---constant for initialize myUI messager ==--